package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.inoutOrder.InoutOrderProductDto;
import com.java110.po.inoutOrder.InoutOrderProductPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IInoutOrderProductInnerServiceSMO
 * @Description 出入库商品接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/inoutOrderProductApi")
public interface IInoutOrderProductInnerServiceSMO {


    @RequestMapping(value = "/saveInoutOrderProduct", method = RequestMethod.POST)
    public int saveInoutOrderProduct(@RequestBody InoutOrderProductPo inoutOrderProductPo);

    @RequestMapping(value = "/updateInoutOrderProduct", method = RequestMethod.POST)
    public int updateInoutOrderProduct(@RequestBody  InoutOrderProductPo inoutOrderProductPo);

    @RequestMapping(value = "/deleteInoutOrderProduct", method = RequestMethod.POST)
    public int deleteInoutOrderProduct(@RequestBody  InoutOrderProductPo inoutOrderProductPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param inoutOrderProductDto 数据对象分享
     * @return InoutOrderProductDto 对象数据
     */
    @RequestMapping(value = "/queryInoutOrderProducts", method = RequestMethod.POST)
    List<InoutOrderProductDto> queryInoutOrderProducts(@RequestBody InoutOrderProductDto inoutOrderProductDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param inoutOrderProductDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryInoutOrderProductsCount", method = RequestMethod.POST)
    int queryInoutOrderProductsCount(@RequestBody InoutOrderProductDto inoutOrderProductDto);

    @RequestMapping(value = "/saveInoutOrderProducts", method = RequestMethod.POST)
    int saveInoutOrderProducts(@RequestBody List<InoutOrderProductPo> inoutOrderProductPos);

    @RequestMapping(value = "/queryProductInoutCount", method = RequestMethod.POST)
    List<InoutOrderProductDto> queryProductInoutCount(@RequestBody InoutOrderProductDto inoutOrderProductDto);
}
